export default [
    {
        path: '/auth/list',
        name: 'auth-list',
        meta: {
            title: '权限管理',
            icon: 'tool-outlined'
        },
        redirect: '/auth/manage/list',
        component: () => import('@/components/Layout/CommonLayout.vue'),
        children: [
            {
                path: '/auth/account/list',
                name: 'auth-account-list',
                meta: {
                    title: '账号列表',
                    keepAlive: true,
                    icon: 'usergroup-add-outlined'
                },
                component: () => import('@/views/auth/account/list.vue'),
            },
            {
                path: '/auth/account/edit',
                name: 'auth-account-edit',
                meta: {
                    title: '账号编辑',
                    // keepAlive: true,
                    toRoute: 'auth-account-list'
                },
                hidden: true,
                component: () => import('@/views/auth/account/edit.vue'),
            },
            {
                path: '/auth/role/list',
                name: 'auth-role-list',
                meta: {
                    title: '角色管理',
                    keepAlive: true,
                    icon: 'solution-outlined'
                },
                component: () => import('@/views/auth/role/list.vue'),
            },
            {
                path: '/auth/role/edit',
                name: 'auth-role-edit',
                meta: {
                    title: '角色编辑',
                    // keepAlive: true,
                    toRoute: 'auth-role-list'
                },
                hidden: true,
                component: () => import('@/views/auth/role/edit.vue'),
            },

        ],
    },
];
